function getPlcForInput(selectInput,form) {
    $.ajax({
        url: CXL.ctxPath + '/plcmonitor/getPlcForSelect',
        type: 'get',
        dataType: 'json',
        success: function (data) {
            // console.log(data);
            $.each(data, function (index, item) {
                console.log(item);
                let optionName = item.name;
                let optionValue = item.plcSn;
                console.log(optionName);
                selectInput.append("<option value="+optionValue+">"+optionName+"</option>");
                // selectInput.append(new Option(optionName,optionValue));// 下拉菜单里添加元素
            });

            form.render('select');
            console.log("success");
        }
    });
}

function getOutportForInput(selectInput,form) {
    $.ajax({
        url: CXL.ctxPath + '/wms/output/getdatalist',
        type: 'get',
        dataType: 'json',
        success: function (data) {
            $.each(data, function (index, item) {
                selectInput.append(new Option(item.name, item.sn));// 下拉菜单里添加元素
            });
            form.render('select');
        }
    });
}